package com.lfs.market.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lfs.market.model.entity.ProductVoucher;
import com.lfs.market.model.entity.User;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class ProductInfoDetailVo {

    @ApiModelProperty("")
    private String id;

    /**
     * 商品标题
     */
    @ApiModelProperty("商品标题")
    private String title;

    /**
     * 商品描述
     */
    @ApiModelProperty("商品描述")
    private String intro;

    /**
     * 商品图片
     */
    @ApiModelProperty("商品图片")
    private String image;

    /**
     * 商品价格
     */
    @ApiModelProperty(value = "商品价格", example = "0")
    private BigDecimal price;

    /**
     * 商品原价
     */
    @ApiModelProperty(value = "商品原价", example = "0")
    private BigDecimal originalPrice;

    /**
     * 发货方式 0邮寄 1自提
     */
    @ApiModelProperty(value = "发货方式 0邮寄 1自提", example = "0")
    private Integer postType;

    /**
     * 地址代码
     */
    @ApiModelProperty("地址代码")
    private String adcode;

    private String address;

    /**
     * 省
     */
    @ApiModelProperty("省")
    private String province;

    /**
     * 市
     */
    @ApiModelProperty("市")
    private String city;

    /**
     * 区
     */
    @ApiModelProperty("区")
    private String district;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", example = "0")
    private Integer status;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private String userId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间", example = "0")
    private Date createTime;
    private User userInfo;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", example = "0")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private ProductVoucher productVoucher;
}
